﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SIOsystem.Control
{
    class OrderListClass
    {
        public OrderListClass(long mid, long pid, long tid, string productName, int amt, double price)
        {
            this.mid = mid;
            this.pid = pid;
            this.tid = tid;
            this.productName = productName;
            this.amt = amt;
            this.price = Math.Round(price, 2);
            this.sum = Math.Round(amt * price, 2);
        }
        public OrderListClass(long mid, long pid, long tid, string productName, int amt, double price,long iSID)
        {
            this.mid = mid;
            this.pid = pid;
            this.tid = tid;
            this.productName = productName;
            this.amt = amt;
            this.price = Math.Round(price, 2);
            this.sum = Math.Round(amt * price, 2);
            this.iSID = iSID;
        }
        private long mid = -1;
        public long Mid
        {
            get { return mid; }
        }
        private long pid = -1;
        public long Pid
        {
            get { return pid; }
        }
        private long tid = -1;
        public long Tid
        {
            get { return tid; }
        }
        private string productName = "";
        public string ProductName
        {
            get { return productName; }
        }
        private int amt = 0;
        public int Amt
        {
            get { return amt; }
        }
        private double price = 0.00;
        public double Price
        {
            get { return price; }
        }
        private double sum = 0.00;

        public double Sum
        {
            get { return sum; }
        }
        private long iSID = 0;
        public long ISID
        {
            get { return iSID; }
        }
    }
}
